<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <title>{% block title %}gdata-sandbox{% endblock %}</title>
    <style type="text/css">
      body { font-family: Verdana, Arial; margin: 0; padding: 0; }
      #content { margin: 10px 10px; overflow: auto; }
      #header { width: 100%; height: 40px; background: #CCC; }
      #info { float: right; margin: 5px 5px; }
      #title { font-size: 20px; font-weight: bold; float: left; margin: 5px 5px; }
    </style>
</head>
<body>
    <div id="header">
      <div id="title">GData-Sandbox</div>
      <div id="info">
	      {% if logged_in %}
			    Logged in as {{ user.email }} | <a href="{{ logout_uri }}">Logout</a>
			  {% else %}
			    <a href="{{ login_uri }}">Login</a>
			  {% endif %}
			  
			  {% if token %}
			    | Token: {{ token }}
			  {% endif %}
		  </div>
    </div>
    <div id="content">
        {% block content %}{% endblock %}
    </div>
    
    
    {% if worksheets %}
      {% for worksheet in worksheets %}
        {{ worksheet.key }} : {{ worksheet.title }}<br/>
      {% endfor %}
    {% endif %}
    
    
<script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
  try {
    var pageTracker = _gat._getTracker("UA-1857529-10");
    pageTracker._trackPageview();
  } catch(err) {}</script>    
</body>
</html>